package org.byqh.dqeai.entity;

import com.easy.query.core.annotation.Column;
import com.easy.query.core.annotation.EntityFileProxy;
import com.easy.query.core.annotation.Table;
import com.easy.query.core.proxy.ProxyEntityAvailable;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.byqh.dqeai.entity.proxy.SysAppDatabaseProxy;

/**
 * 实体类。
 *
 * @author easy-query-plugin automatic generation
 * @since 1.0
 */
@Data
@Schema(name = "SysAppDatabase", description = "$table.comment")
@Table(value = "SYS_APP_DATABASE")
@EntityFileProxy
public class SysAppDatabase implements ProxyEntityAvailable<SysAppDatabase, SysAppDatabaseProxy> {

    @Column(value = "APP_ID")
    private String appId;

    @Column(value = "DATABASE_ID", primaryKey = true)
    private String databaseId;

    @Column(value = "DATABASE_NAME")
    private String databaseName;

    @Column(value = "DATABASE_KIND")
    private String databaseKind;

    @Column(value = "DATABASE_HOST")
    private String databaseHost;

    @Column(value = "DATABASE_PORT")
    private String databasePort;

    @Column(value = "DATABASE_SERVICE")
    private String databaseService;

    @Column(value = "DATABASE_USERNAME")
    private String databaseUsername;

    @Column(value = "DATABASE_PASSWORD")
    private String databasePassword;

    @Column(value = "DATABASE_FILEPATH")
    private String databaseFilepath;

    @Column(value = "IS_PRIMARY", nullable = false)
    private Boolean primary;
}
